-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Added HappyNumber algorithm in maths section #6571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added HappyNumber algorithm in maths section #6571
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6571 +/- ##
============================================
+ Coverage 76.48% 76.56% +0.07%
- Complexity 6010 6014 +4
============================================
Files 718 718
Lines 20296 20292 -4
Branches 3935 3935
============================================
+ Hits 15524 15536 +12
+ Misses 4181 4164 -17
- Partials 591 592 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi Please let me know if you need any further details or adjustments. I’d appreciate any feedback when you get the chance. Thanks in advance for your time! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruturajjadhav07 The interactive Happy Number implementation already exists here: HappyNumbersSeq.java.
However your version is cleaner, better structured, and indeed it belongs in the maths
package. Delete the old interactive class in favor of this one. This would improve the library’s organization and maintainability.
I've removed the old |
Description
This PR adds an implementation of the Happy Number algorithm in
HappyNumber.java
along with corresponding unit tests inHappyNumberTest.java
.clang-format -i --style=file path/to/your/file.java
Notes